﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Lonewolf.Entity.Migrations
{
    public partial class _20190226 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ArticleInfo",
                columns: table => new
                {
                    Id = table.Column<string>(maxLength: 128, nullable: false),
                    IsDelete = table.Column<bool>(nullable: true),
                    IsDeleteTime = table.Column<DateTime>(nullable: true),
                    LastChangeTime = table.Column<DateTime>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: true),
                    CreateUser = table.Column<string>(maxLength: 128, nullable: true),
                    ArcTitle = table.Column<string>(maxLength: 200, nullable: true),
                    ArcAuthor = table.Column<string>(maxLength: 50, nullable: true),
                    ArcFirstTime = table.Column<DateTime>(maxLength: 50, nullable: true),
                    ArcLastTime = table.Column<DateTime>(maxLength: 50, nullable: true),
                    ArcFromWhere = table.Column<string>(maxLength: 50, nullable: true),
                    ArcDescription = table.Column<string>(maxLength: 200, nullable: true),
                    ArcKeyword = table.Column<string>(maxLength: 200, nullable: true),
                    ArcType = table.Column<string>(maxLength: 128, nullable: true),
                    ArcReadNum = table.Column<int>(maxLength: 20, nullable: true),
                    ArcCoverUrl = table.Column<string>(maxLength: 200, nullable: true),
                    ArcIsUse = table.Column<bool>(nullable: true),
                    ArcContent = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ArticleInfo", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ArticleInfo");
        }
    }
}
